package cn.com.jcoo;


import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.Valid;
import java.lang.annotation.*;

@Documented
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Valid
@Constraint(validatedBy = DataAuthValid.class)
public @interface DataAuth {

    String message() default "数据权限校验失败";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};


    Class<? extends DataAuthValidService> validService();
}
